package com.mall.server.service.oms;

import com.mall.dubbo.api.OmsOrderSettingApi;
import com.mall.model.domain.OmsOrderSetting;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @author : xyiaao
 * @createDate : 2022/4/2 19:51
 */
@Service
public class OmsOrderSettingService {

    @DubboReference
    private OmsOrderSettingApi omsOrderSettingApi;


    public void update(Long id, OmsOrderSetting omsOrderSetting) {

        omsOrderSettingApi.updateById(omsOrderSetting);
    }

    public OmsOrderSetting getById(Long id) {

        return omsOrderSettingApi.getById(id);
    }

}
